'use strict';

module.exports = app => {
  const { DataTypes, BIGINT, DATE } = app.Sequelize;

  const Pubfile = app.model.define('pubfile', {
    id: { type: BIGINT.UNSIGNED, primaryKey: true, autoIncrement: true },
    filename:{
        type:DataTypes.CHAR(60),
        allowNull:false
    },
    file_dir:{
        type:DataTypes.CHAR(120),
        allowNull:false,
    },
  },{
      tableName:'t_public_file'
  });
  return Pubfile;
};